<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>[|.pageTitle|]</title>
    [|if .zTree|]
    <link rel="stylesheet" href="/static/zTree3/css/demo.css?t=5" type="text/css">
    <link rel="stylesheet" href="/static/zTree3/css/zTreeStyle/zTreeStyle.css" type="text/css">
    [|end|]
    <meta charset="utf-8">
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/css/main.css">
    <script src="/static/layui/layui.js?s=36"></script>
    <script src="/static/js/main.js?s=2124"></script>
    <script src="/static/js/echarts.js"></script>
</head>
<body>
<div class="layui-layout layui-layout-admin" style="margin-top: 20px;">
    <form class="layui-form"  style="padding-left:25px;">
        <div>
            <p>
                <label id="" style="color:rgb(0, 0, 0);">总金币：:</label>
                <label id="cursendcount0" style="color:red;">0</label>
                <label id="" style="color:rgb(0, 0, 0);">,总输赢：:</label>
                <label id="cursendcount1" style="color:red;">0</label>
                <label id="" style="color:rgb(0, 0, 0);">,当日输赢：:</label>
                <label id="cursendcount2" style="color:red;">0</label>
                <label id="" style="color:rgb(0, 0, 0);">,总充值：:</label>
                <label id="cursendcount3" style="color:red;">0</label>
            </p>
        </div>

    </form>


    <table  class="layui-table" id="extermervipusrs" lay-size="sm" lay-filter="layfilterextermervipusrs"> </table> 

</div>
<script>
    var $;

    layui.config({
            base : "js/"
    }).use(['form','element','layer','jquery','table'], function(){
        var table = layui.table;
        var element = layui.element;
        var form = layui.form;
        $ = layui.jquery;
    //监听表格复选框选择
   // table.on('checkbox(demo)', function(obj){
    //   console.log(obj);
   // });


    ShowTablesDatas(table);
    //监听单元格事件
    table.on('tool(layfilterextermervipusrs)', function(obj){
        var data = obj.data;
        if(obj.event === 'UserInfo'){
            window.location.href="/usersfinduser/userinfopage.html?UserID=" + data.UserID +"&UserNickName=" + data.UserNickName;
            return false;
        }
      });
    return false;
}); 

function ShowTablesDatas(thisTabble){
 

    thisTabble.render({
        elem:'#extermervipusrs'
        ,url:'/usersfinduser/userinfotable'
       ,where: {
            userinfolist: localStorage["userinfolist"]
            ,userconditioninfo:localStorage["userconditioninfo"]
            ,regfrontdatetime:localStorage["regfrontdatetime"]
            ,regbehinddatetime:localStorage["regbehinddatetime"]
            ,loginfrontdatetime:localStorage["loginfrontdatetime"]
            ,loginbehinddatetime:localStorage["loginbehinddatetime"]
            ,userchichanlt: localStorage["userchichanlt"]
            ,userchichangt: localStorage["userchichangt"]
            ,userliquanlt: localStorage["userliquanlt"]
            ,userliquangt: localStorage["userliquangt"]
            ,userczjelt: localStorage["userczjelt"]
            ,userczjegt: localStorage["userczjegt"]
            ,userlwclt: localStorage["userlwclt"]
            ,userlwcgt: localStorage["userlwcgt"]
            ,userbbzslt: localStorage["userbbzslt"]
            ,userbbzsgt: localStorage["userbbzsgt"]
            ,userzsylt: localStorage["userzsylt"]
            ,userzsygt: localStorage["userzsygt"]
            ,userdrsylt: localStorage["userdrsylt"]
            ,userdrsygt: localStorage["userdrsygt"]
            ,usermbsj: localStorage["usermbsj"]
            ,userdljqm: localStorage["userdljqm"]
            ,userzhdlip: localStorage["userzhdlip"]
            ,userzcip: localStorage["userzcip"]
            ,userzhzt: localStorage["userzhzt"]
            ,usersblx: localStorage["usersblx"]
            ,useryhlx: localStorage["useryhlx"]
            ,useryxpt: localStorage["useryxpt"]
        }
        ,done: function(res, curr, count) {
            GetPageTitleData(res.titleinfo)
        }
        ,cols: [[ //标题栏
            {field:'UserID',title:'推广号',width:120, event: 'UserInfo', style:'cursor: pointer;color: #104E8B;'}
            ,{field:'UserNickName',title:'昵称',width:120, event: 'UserInfo', style:'cursor: pointer;color: #104E8B;'}
            ,{field:'regdatetime',title:'注册时间',width:140}
            ,{field:'logindatetime',title:'登录时间',width:140}
            ,{field:'cichan',title:'资产',width:140}
            ,{field:'liquan',title:'礼券',width:60}
            ,{field:'chongzhi',title:'充值',width:60}
            ,{field:'zhuanshi',title:'钻石',width:60}
            ,{field:'zongsuy',title:'总输赢',width:120}
            ,{field:'drsuy',title:'当日输赢',width:140}
            ,{field:'jslw',title:'接收礼物',width:140}
            ,{field:'yhlx',title:'类型',width:120}
            ,{field:'yhsb',title:'设备',width:100}
            ,{field:'yhzt',title:'状态',width:100}
            ,{field:'zbwcsj',title:'作弊完成时间',width:100}
                ]] 
        ,skin: 'row' //表格风格
        ,even: true
        ,page: true //是否显示分页
        ,limits: [50,100,200]
        ,limit: 100//每页默认显示的数量
        ,width: 'full-10'
        ,rules: 'all'
        ,height: 'full-155'
    });
}
function GetPageTitleData(titleinfo){
   // alert(JSON.stringify(titleinfo))
    if (titleinfo.length > 0)
    {
        document.getElementById("cursendcount0").innerHTML = titleinfo[0].ALLGOLD;
        document.getElementById("cursendcount1").innerHTML = titleinfo[0].AAWL;
        document.getElementById("cursendcount2").innerHTML = titleinfo[0].ATWL;
        document.getElementById("cursendcount3").innerHTML = titleinfo[0].ACZ;
    }
  
    return false;
 
}

</script>
</body>
</html>